package com.ymt.bpm.dao.remind;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ymt.bpm.model.PNotify;

@Mapper
public interface PNotifyMapper {
    int deleteByPrimaryKey(String id);

    int insert(PNotify record);

    int insertSelective(PNotify record);

    PNotify selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(PNotify record);

    int updateByPrimaryKey(PNotify record);
    
    List<PNotify> selectByStatus(@Param("status")String status, 
    		@Param("batch")int batch, @Param("now")Date now);
    
    int isTodoExist(String tiId);
}